﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SeaButtleMasterPage.Master" Inherits="System.Web.Mvc.ViewPage<SeaBattle.UI.Web.Models.GameResultModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	GameResult
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="game-result-punel">
    <h2 align="center"><%: Model.Winner.Name %>   VS   <%: Model.Loser.Name %></h2>
    <br />
    <table id="table-result">
        <tr>
        
        <td>
        <h3 align="center">Winner</h3>
            <table id="table-your">
                <% for (int i = 0; i < 10; i++){ %>    
                <tr>
                <% for(int j =0;j<10;j++) { %>       
                <% var Index = i * 10 + j; %>
                <td class="<%: Model.CellClass(Model.WinnerField,i,j) %>" style="cursor: hand">
                </td>
                <%} %>
                </tr>
                <%} %>
            </table>
        </td>
            
        <td>
        <h3 align="center">Loser</h3>
            <table id="table-opponent">
                <% for (int i = 0; i < 10; i++){ %>    
                <tr>
                <% for(int j =0;j<10;j++) { %>       
                <% var Index = i * 10 + j; %>
                <td class="<%: Model.CellClass(Model.LoserField,i,j) %>"  style="cursor: hand">
                </td>
                <%} %>
                </tr>
                <%} %>
            </table>
        </td>
        
        </tr>
        <tr>
        <td colspan='2'>
            <h3 align="center">Preset: <%:Model.Game.Preset %></h3>
        </td>
        </tr>
    </table>
    </div>
</asp:Content>
